package customerEnter.Frame.JDBCDao.Proxy;

import java.sql.Connection;

import customerEnter.Frame.DaoDataTransmission.DaoFramePameTransmission;
import customerEnter.Frame.Error.FramErrorProcessing;
import customerEnter.Frame.JDBCDao.Interface.DaoFrameUseTypeInterface;

/**
 * 
 * 类描述： 靜態代理類
 * 
 * 类名称：UseQueryProxy
 * 
 * 创建人：dy
 * 
 * 创建时间：2017-7-9 上午10:10:31
 * 
 * @param <T>
 * @param <K>
 * 
 */
public class UseQueryProxy<Y, T, K> implements UseQueryProxyJDBC<Y, T, K> {

	DaoFrameUseTypeInterface<Y>		daoFrameUseTypeInterface;
	DaoFramePameTransmission<T, K>	daoFramePameTransmission;
	Connection						connection	= null;

	public UseQueryProxy(DaoFrameUseTypeInterface<Y> daoFrameUseTypeInterface,
			DaoFramePameTransmission<T, K> daoFramePameTransmission) {
		this.daoFrameUseTypeInterface = daoFrameUseTypeInterface;
		this.daoFramePameTransmission = daoFramePameTransmission;
	}

	public Y useDaoFrameDataType(DaoFramePameTransmission<T, K> daoFramePameTransmission) {

		return daoFrameUseTypeInterface.useDaoFrameDataType(daoFramePameTransmission);
	}

	public void OpenConnection() throws FramErrorProcessing {

	}

	@Override
	public void closeConnection() {
		// TODO Auto-generated method stub

	}

}
